package com.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.service.IOrderService;
import org.springframework.stereotype.Component;

@Service(interfaceClass = IOrderService.class,stub = "com.dubbo.MyStub",mock = "com.dubbo.MyMock")
@Component
public class OrderServiceImpl implements IOrderService {
    @Override
    public String orderList(String message) {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "测试2017";
    }
}
